package com.inspur.pojo;

public class UserAccount {
    private Integer userId;

    private String userName;

    private String password;

    private String eMail;

    private Integer roleId;

    private String roleName;

    public UserAccount(Integer userId, String userName, String password, String eMail,Integer roleId, String roleName) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.eMail = eMail;
        this.roleId = roleId;
        this.roleName = roleName;
    }

    public UserAccount() {
        super();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail == null ? null : eMail.trim();
    }

    public String getRoleId() {
        return roleName;
    }

    public void setRoleId(String roleId) {
        this.roleName = roleName;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "UserAccount{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", eMail='" + eMail + '\'' +
                ", roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}